package com.atelier.plugin.database.domain;

import com.intellij.DynamicBundle;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;

public final class MyDatabaseBundle extends DynamicBundle {
    public static final @NonNls String BUNDLE = "message.MyDataBaseBundle";
    public static final MyDatabaseBundle INSTANCE = new MyDatabaseBundle();

    private MyDatabaseBundle() {
        super(BUNDLE);
    }
    public MyDatabaseBundle(@NotNull String pathToBundle) {
        super(pathToBundle);
    }
    public static String message(@NotNull @PropertyKey(
            resourceBundle = BUNDLE
    ) String key, @NotNull Object... params){
        String message = INSTANCE.getMessage(key, params);

        return message;
    }
}
